package com.recive.util;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class StringUtil {
	public static boolean isEmpty(String str) {
		if (null == str) {
			return true;
		}
		if (str.trim().length() == 0) {
			return true;
		}
		return false;
	}
	
	public static void main(String[] args){
		String reg = "[0-9]-[0-9]";
		Pattern pattern = Pattern.compile(reg);
		Matcher mc = pattern.matcher("3-x22");
		while(mc.find()){
		      System.out.println(mc.group());
		}
	}
	
}
